import React, { useState } from "react";
import AntDesignForm from "./AntDesignForm";
import MyFormPage from "./MyFormPage"; 
export default function FormPage() {
      let [formShow, setFormShow] = useState(false);

      return (
            <div className="form-page-wrapper">
                  <button onClick={() => setFormShow(!formShow)}>{!formShow ? "Antd" : "My"}Form</button> 
                  {formShow ? <AntDesignForm></AntDesignForm> : <MyFormPage></MyFormPage>} 
            </div>
      );
}
